/*******************************************************
 *
 *  Name    :  Levi Kushlan
 *  Team Name: Unonymous
 *  Project :  UNO Game
 *  Main    :  Game.java
 *  Date    :  9/27/2012
 *
 ********************************************************/
public class Card implements Comparable <Card> {
    private int faceValue;
    private int value;
    private String color;

    public Card(int faceValue,int value,String color) {
        this.faceValue = faceValue;
        this.value = value;
        this.color = color;

    }

    public int getFace(){
        return faceValue;
    }


    public int getValue(){
        return value;
    }


    public String getColor(){
        return color;
    }

    public void setColor(String color){
        this.color = color;
    }

    public void setFace(int face){
        this.faceValue = face;
    }

    public int compareTo(Card c1){

        if(this == c1)
            return 0;
        if(this.getColor().equalsIgnoreCase(c1.getColor()))
            return 0;
        if(this.getFace() == c1.getFace())               
            return 0;
        
        return 1;
    }

    @Override
    public String toString(){
        return color+ " "+faceValue + "\n";
    }


}
